#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<vector>
#include<string>
#include"DS.h"

using std::cout;
using std::cin;
using std::endl;

int main() 
{
	priority_queue<int>pq;
	pq.push(5243);
	pq.push(23);
	pq.push(312);
	pq.push(35);
	pq.push(567);
	pq.push(878);
	pq.push(9994);

	while (!pq.empty())
	{
		cout << pq.top() << endl;
		pq.pop();
	}
	return 0;
}